package com.chenyue.cm.user.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author Lbx
 * @since 2024-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdMemberShoppingCart对象", description="购物车")
public class JdMemberShoppingCart extends Model<JdMemberShoppingCart> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "会员id")
    private String memberId;

    @ApiModelProperty(value = "商品id")
    private String goodsId;

    @ApiModelProperty(value = "规格商品id")
    private String skuId;

    @ApiModelProperty(value = "商品规格")
    private String skuAttrInfo;

    @ApiModelProperty(value = "加入购物车时单价")
    private BigDecimal price;

    @ApiModelProperty(value = "购买数量")
    private Integer purchaseNum;

    @ApiModelProperty(value = "状态 (0:正常，1:特价(秒杀))")
    private Integer status;

    @ApiModelProperty(value = "添加时间")
    private String createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @ApiModelProperty(value = "备注")
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
